Skip to content

Support into_raw_fd for TcpStream to allow dispose but keep connection open#694

Closed
utilitydelta wants to merge 2 commits intoDataDog:masterfrom
utilitydelta:tcp-into-raw-fd-support
Closed

Support into_raw_fd for TcpStream to allow dispose but keep connection open#694
utilitydelta wants to merge 2 commits intoDataDog:masterfrom
utilitydelta:tcp-into-raw-fd-support

Conversation

@utilitydelta
Copy link

@utilitydelta utilitydelta commented Sep 26, 2025

What does this PR do?

Adds the ability to dispose of active TcpStream object but keep it open - for another executor to take over for example.

Motivation

I have a prototype server here that uses glommio:
https://github.com/utilitydelta-io/glommio-sharded-affinity-server-starter

I wanted to migrate the tcp connection to a different executor.

Checklist

[x] I have added unit tests to the code I am submitting
[x] My unit tests cover both failure and success scenarios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant